#ifndef AUTORUN_H
#define AUTORUN_H

//#include <QObject>
#include <QString>

class LAutoRun {

public:
    static LAutoRun* getInstance() {
        if(!instance)
            instance = new LAutoRun();
        return instance;
    }

    void setApplicationName(QString name);
    void setAutoRunState(bool param) const;

    bool isInAutoRun() const;

private:
    LAutoRun();
    LAutoRun(const LAutoRun& );
    LAutoRun& operator=(const LAutoRun& );

    ~LAutoRun();

    static LAutoRun* instance;

    bool autoRun;
    QString appName;

};


#endif  //AUTORUN_H
